package com.example.springboot_jdk8.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 陈礼
 * @since 2022-11-23 09:47
 */
@AllArgsConstructor
@Getter
public enum PullDataConfigEnum {

    /**
     *
     */
    IP("IP","接口为IP白名单认证方式"),
    RSA("RSA","接口为RSA的token认证方式"),

    JOB_DOCK_ROOT_ORG_YES("yes","岗位所属组织id为空时可以挂在根组织下"),
    JOB_DOCK_ROOT_ORG_NO("no","岗位所属组织id为空时不允许挂在根组织下"),

    SUBCOMPANY("1", "分部"),
    DEPARTMENT("2", "部门"),
    ORG_ENABLE("1", "部门启用"),
    ORG_DISABLE("0", "部门禁用"),
    COMPANY_PREFIX("company-", "公司id前缀"),
    DEPT_PREFIX("department-", "部门id前缀"),
    OA_ROOT_ORG_ID("0", "OA根组织id"),
    OA_ORG_DISABLE("1", "OA组织禁用状态码"),

    //人员状态
    NORMAL("11", "正常"),
    INVALID("12", "停用"),
    TEMP("13", "临时"),
    FULL("FULL", "全量拉取"),
    INCRE("INCRE", "增量拉取"),
    PULL_ORG("pullOrg", "拉取组织"),
    PULL_USER("pullUser", "拉取用户"),
    ORG("org", "组织类型"),
    USER("user", "用户类型"),

    SUCCESS_CODE("1","请求成功状态码"),

    REDIS_RSA_KEY_PREFIX("idm:downstream:weaveroa-e9:","redis缓存请求获取token时的RSA公私钥前缀"),
    REDIS_TOKEN_KEY("idm:weaveroa-e9-downstream:access_token:","redis缓存token前缀"),

    REDIS_USER_TYPE_PREFIX("idm:yingweiteng:userType:","idm用户类型前缀"),

    DATA_SOURCE_FORM_NAME("MDM", "数据来源名称"),

    COMPANY_CONFIG_ID("9900001","查询全部公司信息 configId编码： 9900001"),
    DEPT_CONFIG_ID("9900002","查询全部部门信息 configId编码： 9900002"),
    USER_CONFIG_ID("9900003","查询全部人员基本信息 configId编码： 9900003"),
    USER_DETAIL_CONFIG_ID("9900004","查询全部人员任职信息 configId编码： 9900004")
    ;

    private final String value;
    private final String name;
}
